package io.bdmc.modules.bss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author ping
 * @since 2021-11-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class DeviceMachineDtsConfig extends Model<DeviceMachineDts> {

    private static final long serialVersionUID=1L;

    @TableId(value = "dts_config_id", type = IdType.AUTO)
    private Integer dtsConfigId;

    private Integer deviceId;

    /**
     * 总通道数，默认值为8
     */
    private Integer channel;

    /**
     * 起始点（米））
     */
    private Integer startRange;

    /**
     * 结束点（米）
     */
    private Integer endRange;

    /**
     * 持续的点数量
     */
    private Integer persistCount;

    /**
     * 高温阈值
     */
    private Integer tempHigh;

    /**
     * 低温阈值
     */
    private Integer tempLow;


    private LocalDateTime createTime;


    @Override
    public Serializable pkVal() {
        return this.dtsConfigId;
    }

}
